import nasdaqdatalink
class Nasdaq:
    def __init__(self):
        nasdaqdatalink.ApiConfig.verify_ssl = False
        nasdaqdatalink.ApiConfig.api_key = "3dxhG_jNwsV2w8scJQLk"
    def test(self):
        data = nasdaqdatalink.get('VOL/MSFT')
        print (data.to_dict("records"))
if __name__ == '__main__':
    n=Nasdaq()
    n.test()